{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
<head>
    <meta charset="UTF-8">
    <title>{% trans 'Login' %}</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css" rel="stylesheet">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/dot/2.0.0-beta.0/doT.min.js"></script>

    <script src="{% url 'javascript-catalog' %}"></script>
    <script src="{% url 'site_urls' %}"></script>
    <script src="{% static 'js/vendor/main.js' %}"></script>
    <script src="{% static 'js/vendor/jquery.preloader.min.js' %}"></script>
{#    <script src="{% static 'js/vendor/_resolver.js' %}"></script>#}
</head>
<body>
    <div id="wrap">
        <div class="container">
            <div class="row self_row">
                <div class="col-md-5">
                    <img class="login_img" src="{% static 'image/login.jpg' %}">
                </div>
                <div class="col-md-3">
                </div>
                <div class="col-md-4">
                    <form id="login-form">
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <a href="{% url 'site_index' %}"><img class="title_img" src="{% static 'image/111_write.png' %}"></a>
                                <h2>{% trans 'Login' %}</h2>
                            </div>{# panel heading #}
                            <div class="panel-body">
                                <div class="form-group">
                                    <label for="user">{% trans 'Username' %}</label>
                                    <input type="text" class="form-control" id="user" name="user" placeholder="{% trans 'Input your username' %}">
                                </div>
                                <div class="form-group">
                                    <label for="password">{% trans 'Password' %}</label>
                                    <input type="password" class="form-control" id="password" name="password" placeholder="{% trans 'Input your password' %}">
                                </div>
                                <div class="form-group">
                                    <label for="captcha-response">{% trans 'Verification code' %}</label>
                                    <div class="row">
                                        <div class="col-md-8">
                                            <input type="text" class="form-control" id="captcha-response" name="captcha-response" placeholder="{% trans 'Code' %}">
{#                                          <p class="help-block">Example block-level help text here.</p>#}
                                        </div>
                                        <div class="col-md-4">
                                            <img src="{% url 'accounts_api_v1:get_captcha' %}" data-src="{% url 'accounts_api_v1:get_captcha' %}" id="captcha">
                                        </div>
                                    </div>
                                </div>
                                <div class="checkbox">
                                    <label>
                                      <input type="checkbox" id="remember-me"> {% trans 'keep online' %}
                                    </label>
                                </div>
                                <button type="submit" id="login-button" class="btn btn-primary">{% trans 'Log in' %}</button>&nbsp;&nbsp;
                                <a href="{% url 'accounts:reset_password_request' %}">{% trans 'Reset password？' %}</a>
                            </div>{# panel body #}
                            <div class="panel-footer">
                                <a href="{% url 'accounts:register' %}">{% trans 'Sign up here.' %}</a>
                            </div>{# panel footer #}
                        </div>{# panel #}
                    </form>
                </div>
            </div>{# row #}
        </div>{# container #}
    </div> {# warp #}

    <link rel="stylesheet" href="{% static 'css/accounts/login.css' %}">

    <script src="{% static 'js/vendor/formValidation.min.js' %}"></script>
    <script src="{% static 'js/vendor/formValidation.bootstrap.min.js' %}"></script>
    <script src="{% static 'js/accounts/login.js' %}"></script>
</body>
</html>